package com.oa.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.oa.bean.Bored;
import com.oa.bean.Privilege;
import com.oa.bean.Reply;
import com.oa.bean.Role;
import com.oa.bean.Send;
import com.oa.dao.IndexDao;
import com.oa.service.PostService;
@Service
public class PostServiceImpl implements PostService{
	@Resource
	public IndexDao index;
	@Override
	public List<Send> showPost() {
		// TODO Auto-generated method stub
		return index.showSendPost();
	}
	@Override
	public List<Send> showBored() {
		// TODO Auto-generated method stub
		return index.showBored();
	}
	@Override
	public int addPost(Send s) {
		// TODO Auto-generated method stub
		return index.addPost(s);
	}
	@Override
	public Bored queryByIdSend(int sid) {
		// TODO Auto-generated method stub
		return index.queryByIdSend(sid);
	}
	@Override
	public List<Send> querySend(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return index.querySend(map);
	}
	@Override
	public int deleteSend(int sid) {
		// TODO Auto-generated method stub
		return index.deletePost(sid);
	}
	@Override
	public int modifyPost(Send sid) {
		// TODO Auto-generated method stub
		return index.modifyPost(sid);
	}
	@Override
	public List<Send> lookPost(int sid) {
		// TODO Auto-generated method stub
		return index.lookPost(sid);
	}
	@Override
	public Send lookMainPost(int sid) {
		// TODO Auto-generated method stub
		return index.lookMainPost(sid);
	}
	@Override
	public int addReplyPost(Reply r) {
		// TODO Auto-generated method stub
		return index.addReplyPost(r);
	}
	@Override
	public Reply queryByIdReply(int rid) {
		// TODO Auto-generated method stub
		return index.queryByIdReply(rid);
	}
	@Override
	public List<Send> queryWaitPost(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return index.queryWaitPost(map);
	}
	@Override
	public int modifyApprove(int s) {
		// TODO Auto-generated method stub
		return index.modifyApprove(s);
	}
	@Override
	public List<Send> showQuerySend(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return index.ShowSendList(map);
	}
	@Override
	public List<Bored> showBoredPost() {
		// TODO Auto-generated method stub
		return index.showBoredPost();
	}
	@Override
	public int deleteRored(int bid) {
		// TODO Auto-generated method stub
		return index.deleteRored(bid);
	}
	@Override
	public Send findByIdSend(int bid) {
		// TODO Auto-generated method stub
		return index.findByIdSend(bid);
	}
	@Override
	public int addBored(Bored b) {
		// TODO Auto-generated method stub
		return index.addBored(b);
	}
	@Override
	public int addBoreds(List<Bored> bored) {
		// TODO Auto-generated method stub
		return index.addBoreds(bored);
	}
	@Override
	public List<Bored> queryBored() {
		// TODO Auto-generated method stub
		return index.queryBroed();
	}
	

}
